﻿@model IEnumerable<sgp.Models.Banco>

@{
    ViewBag.Title = "Index";
}

<legend>
    <table border="0" width="100%" cellpadding="5">
        <tr>
            <td>
                <h2>
                    Cadastrar Banco</h2>
            </td>
        </tr>
        <tr>
            <td>
                <a class="btn btn-primary btn-primary pull-left" href="/Banco/Create" data-original-title="">
                    Adicionar</a>
            </td>
        </tr>
    </table>
</legend>

<table class="table table-bordered table-striped" width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <th>
            Nome
        </th>  
        <th>
            Número
        </th> 
         
        <th>
            Ações
        </th>
    </tr>

     @foreach (var item in Model)
    {
    
    
        <tr>
            <td>
                <div>
                    @Html.DisplayFor(modelItem => item.Nome)
                </div>
            </td>
            <td>
                <div>
                    @Html.DisplayFor(modelItem => item.Numero)
                </div>
            </td>
           
            
            <td>
                <a class="btn" href="/Banco/Edit/@item.Id" data-original-title="Editar"><i
                    class="icon-edit"></i></a><a class="btn" href="/Banco/Details/@item.Id" data-original-title="Detalhar">
                        <i class="icon-file"></i></a><a class="btn btn-danger" href="/Banco/Delete/@item.Id" data-original-title="Deletar">
                            <i class="icon-remove icon-white"></i></a>
            </td>
        </tr>
    }
</table>












@*<table>
    <tr>
        <th>
            Nome
        </th>
        <th>
            Numero
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nome)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Numero)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
*@